package portal.action.views;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class AlgorithmAction {

	@RequestMapping(value="/views/algorithm/add",method=RequestMethod.GET)
	public String algAdd(){
		return "algorithm/algAdd";
	}
	@RequestMapping(value="/views/algorithm/xmladd",method=RequestMethod.GET)
	public String algXmlAdd(){
		return "algorithm/algXmlAdd";
	}
	@RequestMapping(value="/views/algorithm/list",method=RequestMethod.GET)
	public String algList(){
		return "algorithm/algList";
	}
	@RequestMapping(value="/views/algorithm/xmlcheck",method=RequestMethod.GET)
	public String algXmlCheck(){
		return "algorithm/algXmlCheck";
	}
	@RequestMapping(value="/views/algorithm/xmlUpdate",method=RequestMethod.GET)
	public String algXmlUpdate(String algorithmId,HttpServletRequest req){
		req.setAttribute("algorithmId", algorithmId);
		return "algorithm/algXmlUpdate";
	}
	@RequestMapping(value="/views/algorithm/xmlUpdateCheck",method=RequestMethod.GET)
	public String algXmlUpdateCheck(String algorithmId,HttpServletRequest req){
		req.setAttribute("algorithmId", algorithmId);
		return "algorithm/algXmlUpdateCheck";
	}
	@RequestMapping(value="/views/algorithm/infoUpdate",method=RequestMethod.GET)
	public String algInfoUpdate(String algorithmId,HttpServletRequest req){
		req.setAttribute("algorithmId", algorithmId);
		return "algorithm/algInfoUpdate";
	}

	@RequestMapping(value="/views/algorithm/detail",method=RequestMethod.GET)
	public String algDetail(String algorithmId,HttpServletRequest req){
		req.setAttribute("algorithmId", algorithmId);
		return "algorithm/algDetail";
	}

}
